package com.sjgs.common.utils;

public class FileNameUtils {

    public static String getFileName(String fkey) {
        if (fkey.indexOf("@") > -1) {
            return fkey.substring(fkey.indexOf("@") + 1, fkey.length());
        } else {
            return fkey;
        }
    }

    public static String getFileHash(String fkey) {
        if (fkey.indexOf("@") > -1) {
            return fkey.substring(0, fkey.indexOf("@"));
        } else {
            return null;
        }
    }
}
